﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net;

namespace ZXW.DotNet.Common.Basic.Network.Udp
{
    public class UDPSimpleEventArgs : EventArgs
    {
        #region 字段
        /// <summary>  
        /// 远程终结点  
        /// </summary>  
        private IPEndPoint _RemoteEndPoint;
        /// <summary>  
        /// 数据  
        /// </summary>  
        private byte[] _Data;

        #endregion

        #region 属性
        /// <summary>  
        /// 获取远程终结点  
        /// </summary>  
        public IPEndPoint RemoteEndPoint
        {
            get { return _RemoteEndPoint; }
            set
            {
                _RemoteEndPoint = value;
            }
        }
        /// <summary>  
        /// 获取接收数据  
        /// </summary>  
        public byte[] Data
        {
            get { return _Data; }
            set
            {
                _Data = value;
            }
        }
        #endregion

        #region 构造函数
        public UDPSimpleEventArgs(IPEndPoint remoteEndPoint, byte[] data)
        {
            _RemoteEndPoint = remoteEndPoint;
            _Data = data;
        }
        #endregion
    }
}
